package guda.house.biz.form;

import guda.house.dal.dataobject.SmsDO;

/**
 * Created by well on 16/3/2.
 */
public class SmsEditForm extends SmsForm{


    private Long smsId;

    public void initForm(SmsDO smsDO){
        if(smsDO == null){
            return;
        }
        setPhoneArray(smsDO.getPhoneArray());
        setSmsId(smsDO.getSmsId());
        setVillageId(smsDO.getVillageId());
    }

    public SmsDO toDO(){
        SmsDO smsDO = new SmsDO();
        smsDO.setPhoneArray(getPhoneArray());
        smsDO.setSmsId(getSmsId());
        smsDO.setVillageId(getVillageId());
        return smsDO;
    }

    public Long getSmsId() {
        return smsId;
    }

    public void setSmsId(Long smsId) {
        this.smsId = smsId;
    }
}
